﻿<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="AdministrarVacantes.aspx.vb" Inherits="AdministrarVacantes" title="Página sin título" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table style="width: 80%" >
        <tr>
            <td align="center" colspan="3"  >
                <asp:Label ID="Label27" runat="server" Font-Size="Large" ForeColor="#9966FF" 
                    Text="Administracion de Vacantes"></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="left" style="width: 38px"  >
                &nbsp;</td>
            <td align="left"  >
                &nbsp;</td>
            <td align="left">
                &nbsp;</td>
        </tr>
        <tr>
            <td align="left" style="width: 38px"  >
                &nbsp;</td>
            <td align="left"  >
                <asp:Label ID="Label6" runat="server" Text="Busquedas Vigentes:" Width="135px" 
                    ForeColor="#000099"></asp:Label>
            </td>
            <td align="left">
                &nbsp;</td>
        </tr>
        <tr>
            <td align="center" colspan="3">
                <asp:GridView ID="gvBusquedasVigentes" runat="server" AutoGenerateColumns="False" 
                    CellPadding="4" ForeColor="#333333" GridLines="None" 
                    DataKeyNames="id_vacante,id_cargo,expira" 
                    EmptyDataText="No hay busquedas vigentes" AllowPaging="True" PageSize="5">
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <Columns>
                        <asp:BoundField DataField="cargo" HeaderText="Cargo" />
                        <asp:BoundField DataField="Expira" HeaderText="Expira" />
                        <asp:BoundField DataField="edad_desde" HeaderText="Edad Desde" />
                        <asp:BoundField DataField="edad_hasta" HeaderText="Edad Hasta" />
                        <asp:CommandField ButtonType="Image" DeleteImageUrl="~/Imagenes/trash.gif" 
                            ShowDeleteButton="True" />
                        <asp:CommandField ShowSelectButton="True" />
                    </Columns>
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#99CCFF" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <EditRowStyle BackColor="#999999" />
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td align="center" colspan="3">
                <asp:Button ID="btnNuevaBusqueda" runat="server" Text="Nuevo" 
                    CausesValidation="False" />
            </td>
        </tr>
        <tr>
            <td align="left" colspan="3">
                <asp:TextBox ID="txtid_vacante" runat="server" Width="30px" Visible="False">0</asp:TextBox>
            </td>
        </tr>
        </table>
        <table style="width: 80%" align="center">
        <tr>
            <td align="right" style="width: 136px">
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td align="right">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td align="right" style="width: 136px">
                <asp:Label ID="Label1" runat="server" Text="Cargo:" Width="44px"></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="ddlCargo" runat="server">
                </asp:DropDownList>
            </td>
            <td align="right">
                <asp:Label ID="Label2" runat="server" Text="Fecha Expiracion:" Width="113px"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtFechaExpiracion" runat="server" Width="98px" 
                    ValidationGroup="Experiencia"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="txtFechaExpiracion" ErrorMessage="*" Display="Dynamic" 
                    ValidationGroup="Experiencia"></asp:RequiredFieldValidator>
                <asp:CompareValidator ID="CompareValidator4" runat="server" 
                    ControlToValidate="txtFechaExpiracion" Display="Dynamic" ErrorMessage="*" 
                    Operator="DataTypeCheck" Type="Date" ValidationGroup="Experiencia"></asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td align="left" style="width: 136px" >
                <asp:Label ID="Label3" runat="server" Text="Requisitos busqueda:" width="180px" 
                    ForeColor="#000099"></asp:Label>
            </td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td align="right" style="width: 136px">
                <asp:Label ID="Label8" runat="server" Text="Edad desde:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtEdadDesde" runat="server" Width="47px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="txtEdadDesde" ErrorMessage="*" 
                    ValidationGroup="Experiencia"></asp:RequiredFieldValidator>
                <asp:CompareValidator ID="CompareValidator2" runat="server" 
                    ControlToValidate="txtEdadDesde" Display="Dynamic" ErrorMessage="*" 
                    Operator="DataTypeCheck" Type="Integer" ValidationGroup="Experiencia"></asp:CompareValidator>
            </td>
            <td align="right">
                <asp:Label ID="Label9" runat="server" Text="Edad hasta:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtEdadHasta" runat="server" Width="36px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="txtEdadHasta" ErrorMessage="*" 
                    ValidationGroup="Experiencia"></asp:RequiredFieldValidator>
                <asp:CompareValidator ID="CompareValidator3" runat="server" 
                    ControlToValidate="txtEdadHasta" ErrorMessage="*" Operator="DataTypeCheck" 
                    Type="Integer" ValidationGroup="Experiencia"></asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 136px" align="right">
                <asp:Label ID="Label4" runat="server" Text="Experiencia en:"></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="ddlCargosExperiencia" runat="server" AutoPostBack="True">
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                    ControlToValidate="ddlCargosExperiencia" ErrorMessage="*" 
                    ValidationGroup="Experiencia"></asp:RequiredFieldValidator>
            </td>
            <td align="right">
                <asp:Label ID="Label7" runat="server" Text="Duracion en puesto (años):" 
                    Width="99px"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtDuracion" runat="server" Width="91px" 
                    ValidationGroup="Experiencia"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                    ControlToValidate="txtDuracion" ErrorMessage="*" 
                    ValidationGroup="Experiencia"></asp:RequiredFieldValidator>
                <asp:CompareValidator ID="CompareValidator1" runat="server" 
                    ControlToValidate="txtDuracion" Display="Dynamic" ErrorMessage="*" 
                    Operator="DataTypeCheck" Type="Integer" ValidationGroup="Experiencia"></asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 136px" align="right">
                <asp:Label ID="lblOtraExperiencia" runat="server" Text="Otra experiencia:" 
                    Visible="False"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtExperiencia" runat="server" ValidationGroup="Experiencia" 
                    Visible="False"></asp:TextBox>
                </td>
            <td align="right">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 136px" align="right">
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td align="right">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td align="center" colspan="4">
                <asp:Button ID="btnAgregarExperiencia" runat="server" Text="Agregar" 
                    ValidationGroup="Experiencia" />
            </td>
        </tr>
        <tr>
            <td style="width: 136px">
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td align="center" colspan="4" style="height: 23px">
                <asp:GridView ID="gvExperiencia" runat="server" AutoGenerateColumns="False" 
                    CellPadding="4" ForeColor="#333333" GridLines="None" 
                    DataKeyNames="id_requerimiento,id_detalle" 
                    EmptyDataText="No hay experiencia cargada">
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <Columns>
                        <asp:BoundField DataField="experiencia" HeaderText="Experiencia" />
                        <asp:BoundField DataField="antiguedad" HeaderText="Antiguedad" />
                        <asp:CommandField ButtonType="Image" DeleteImageUrl="~/Imagenes/trash.gif" 
                            ShowDeleteButton="True" />
                    </Columns>
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#99CCFF" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <EditRowStyle BackColor="#999999" />
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td style="width: 136px">
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td align="right" style="width: 136px">
                <asp:Label ID="Label5" runat="server" Text="Estudios:"></asp:Label>
            </td>
            <td align="left">
                <asp:DropDownList ID="ddlEstudios" runat="server" ValidationGroup="estudios">
                </asp:DropDownList>
            </td>
            <td align="right">
                <asp:Label ID="Label10" runat="server" Text="Descripcion:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtDescripcionEstudio" runat="server" 
                    ValidationGroup="estudios"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="width: 136px">
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td align="center" colspan="4">
                <asp:Button ID="btnAgregarEstudio" runat="server" Text="Agregar" 
                    ValidationGroup="estudios" />
            </td>
        </tr>
        <tr>
            <td style="width: 136px">
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td align="center" colspan="4">
                <asp:GridView ID="gvEstudios" runat="server" AutoGenerateColumns="False" 
                    CellPadding="4" ForeColor="#333333" GridLines="None" 
                    DataKeyNames="id_requerimiento,id_detalle" 
                    EmptyDataText="No hay estudios cargados">
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <Columns>
                        <asp:BoundField DataField="estudio" HeaderText="Estudio" />
                        <asp:BoundField DataField="descripcion_estudio" 
                            HeaderText="Descripcion Estudio" />
                        <asp:CommandField ButtonType="Image" DeleteImageUrl="~/Imagenes/trash.gif" 
                            ShowDeleteButton="True" />
                    </Columns>
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#99CCFF" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <EditRowStyle BackColor="#999999" />
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td style="width: 136px">
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        </table>
</asp:Content>

